import Vue from 'vue'
import VueRouter from 'vue-router'
import ScalePage from '../views/ScalePage.vue'
import Main from '../views/Main.vue'
Vue.use(VueRouter)

const routes = [{
  path: '/show/:name',
  component: ScalePage
},
{
  path: '/main',
  component: Main
}, {
  path: '/',
  redirect: '/main'
}
]

const router = new VueRouter({
  routes
})

export default router
